from django.conf.urls.defaults import *
from settings_site import *

urlpatterns = patterns('',
    # Example:
    (r'^fiteat/measure/', include('fiteat.apps.measurements.urls')),
    (r'^fiteat/cardio/', include('fiteat.apps.cardio.urls')),
#    (r'^fiteat/strength/', include('fiteat.apps.strength.urls')),

     (r'^fiteat/$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}),
     (r'^fiteat/admin/', include('django.contrib.admin.urls')),
     (r'^fiteat/media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT}),

# User registration
    (r'^fiteat/accounts/register/$', 'registration.views.register', {'success_url': '/fiteat/accounts/register/complete/'}),
    (r'^fiteat/accounts/', include('registration.urls')),

# Profiles management
    (r'^fiteat/profiles/', include('profiles.urls'), {'success_url': '/fiteat/admin/'}),
)
